<?php
if (!isset($_SESSION))
    session_start();
require_once("createclass.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    require('../../Smarty/libs/Smarty.class.php');

    $smarty = new Smarty;

    $user = ""; $email = "";
    if(isset($_POST["user"])) $user = $_POST["user"];
    if(isset($_POST["email"])) $email = $_POST["email"];
    $smarty->assign("user", $user);    
    $smarty->assign("email", $email);    
    $smarty->assign("error", $create->error);

    $smarty->setTemplateDir('./smarty/templates/');
    $smarty->setCompileDir('./smarty/templates_c/');
    $smarty->setConfigDir('./smarty/configs/');
    $smarty->setCacheDir('./smarty/cache/');
    
    if (empty($_SESSION['logged_bool'])) {
            $_SESSION['logged_bool'] = false;
        }
        $status = $_SESSION['logged_bool'];

        $smarty->assign("logged", $status);
        
    $smarty->display('preHeader.tpl');
    echo '<body style="position: relative; top:-16px; " >';

    $smarty->display('header.tpl');
    $smarty->display('flashyBox.tpl');
    $smarty->display('createAccount.tpl');
    $smarty->display('footer.tpl');

    echo '</body>';
    ?>
</html>
